<template>
  <div>
    <el-tooltip :content="$t('msg.navBar.guide')">
      <el-icon id="guide-start"><Guide /></el-icon>
    </el-tooltip>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useI18n } from 'vue-i18n'
import { driver } from 'driver.js'
import 'driver.js/dist/driver.css'
import { Guide } from '@element-plus/icons-vue'
import steps from './steps'

const i18n = useI18n()

onMounted(() => {
  const driverObj = driver({
    showProgress: true,
    steps: steps(i18n)
  })

  driverObj.drive()
})
</script>

<style scoped></style>
